package org.xgame.comm.cmdhandler;

import com.google.protobuf.GeneratedMessageV3;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 处理指令注解
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface HandleCmd {
    /**
     * 指令类型
     *
     * @return 指令类型
     */
    Class<? extends GeneratedMessageV3> value();
}
